{include file="../application/admin/view/index/index_base.html" /}
<div class="nav_z clearfix">
			<div class="nav_nav">
			    <ul>
                    <li class="tdd kebi"><a href="{:url('admin/Index/index')}">教师工作量</a></li>
                    {if $Think.session.userInfo.admin==1}<li class="tdd "><a href="{:url('admin/Admin/index')}">领导统计表</a></li>
                    {else /} <li class="tee"></li>{/if}
			    </ul>
				<ul>
					<li class="tj"><a href="#"><span class="glyphicon glyphicon-home"></span>首页</a></li>
					<li class="tj"><a href="{:url('admin/Index/index')}"><span class="glyphicon glyphicon-list-alt"></span>获奖统计</a></li>
					<li class="tj"><a href="{:url('admin/Index/index2')}"><span class="glyphicon glyphicon-list-alt"></span>实训统计</a></li>
					<li class="tj"><a href="{:url('admin/Index/index3')}"><span class="glyphicon glyphicon-list-alt"></span>授课统计</a></li>
					<li class="tj"><a href="{:url('admin/Index/index4')}"><span class="glyphicon glyphicon-list-alt"></span>科研项目统计</a></li>
					<li class="tj"><a href="{:url('admin/Index/index5')}"><span class="glyphicon glyphicon-list-alt"></span>论文发表统计</a></li>
					<li class="tj"><a href="{:url('admin/Index/index6')}"><span class="glyphicon glyphicon-list-alt"></span>培训(出差)统计</a></li>
					<li class="xuanz tj"><a href="{:url('admin/Index/index7')}"><span class="glyphicon glyphicon-list-alt"></span>我的数据统计</a></li>
					
				</ul>
			</div>
		</div>
		<div class="nav_z_cont">
			<!-- 个人统计表 -->
			<div class="nav1 yc">
				<div class="ss clearfix">
					<form action="{:url('admin/Index/user_class')}" class="xzxueqi" onchange="submitForm();">
						<select name="term_id" id="xueqi">
							{volist name="tList" id="t"}
								<option value="{$t['id']}">{$t['term']}</option>
							{/volist}
						    <option selected>选择学期</option>
						</select>
					</form>
				</div>
				<table>
					<tr class="tr1">
							<td colspan="6" style="text-align: left;">个人统计</td>
						</tr>
					<tr>
						<td>总获奖项目数(记录/条)</td>
						<td>总实训周数(周)</td>
						<td>总授课课时(小时)</td>
						<td>总科研项目数(记录/条)</td>
						<td>总论文发表次数</td>
						<td>总培训(出差)记录(天)</td>
					</tr>
					<tr>
						<td id="w">{$Think.session.w_data}</td>
						<td id="t">{$Think.session.t_data}</td>
						<td id="h">{$Think.session.h_data}</td>
						<td id="r">{$Think.session.r_data}</td>
						<td id="p">{$Think.session.p_data}</td>
						<td id="tr">{$Think.session.tr_data}</td>
					</tr>
				</table>
				<div id="container" style="height: 100%"></div>
			</div>
		</div>	
</body>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-gl/echarts-gl.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-stat/ecStat.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/dataTool.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/china.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/world.js"></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=ZUONbpqGBsYGXNIYHicvbAbM"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/bmap.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/simplex.js"></script>
<script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var w=$("#w").html();
var t=$("#t").html();
var h=$("#h").html();
var r=$("#r").html();
var p=$("#p").html();
var tr=$("#tr").html();
var app = {};
option = null;
app.title = '环形图';
option = {
    tooltip: {
        trigger: 'item',
        formatter: "{a} <br/>{b}: {c} ({d}%)"
    },
    legend: {
        orient: 'vertical',
        x: 'left',
        data:['总获奖项目数(记录/条)','总实训周数(周)','总授课课时(小时)','总科研项目数(记录/条)','总论文发表次数','总培训(出差)记录(天)']
    },
    series: [
        {
            name:'数据分析',
            type:'pie',
            radius: ['50%', '70%'],
            avoidLabelOverlap: false,
            label: {
                normal: {
                    show: false,
                    position: 'center'
                },
                emphasis: {
                    show: true,
                    textStyle: {
                        fontSize: '30',
                        fontWeight: 'bold'
                    }
                }
            },
            labelLine: {
                normal: {
                    show: false
                }
            },
            data:[
                {value:w, name:'总获奖项目数(记录/条)'},
                {value:t, name:'总实训周数(周)'},
                {value:h, name:'总授课课时(小时)'},
                {value:r, name:'总科研项目数(记录/条)'},
                {value:p, name:'总论文发表次数'},
                {value:tr, name:'总培训(出差)记录(天)'}
            ]
        }
    ]
};
;
if (option && typeof option === "object") {
    myChart.setOption(option, true);
}
function submitForm(){
    var form =$(".xzxueqi");
    form.submit();
}
</script>
</html>